package com.qezhhnjy.demo.netty;

import com.qezhhnjy.demo.netty.client.FirstClient;
import com.qezhhnjy.demo.netty.server.FirstServer;

/**
 * @author zhaoyangfu
 * @date 2021/6/18-16:03
 */
public class NettyApplication {

    public static void main(String[] args) throws InterruptedException {

        new Thread(() -> {
            try {
                FirstServer.start();
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
        }).start();

        new Thread(() -> {
            try {
                FirstClient.start();
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
        }).start();
    }
}
